Skip to content

Correct the assertions added in commit 4831498 - #5333

Merged
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
wantehchang:correct-assertions
Aug 27, 2026
Merged

Correct the assertions added in commit 4831498#5333
urvangjoshi merged 1 commit into
AOMediaCodec:mainfrom
wantehchang:correct-assertions

Conversation

@wantehchang

Copy link
Copy Markdown
Member

The assertions are intended to verify that sb_cols and sb_rows are fully consumed by av2_set_seq_tile_info() or av2_set_tile_info(). It is fine for sb_start to exceed sb_cols or sb_rows after exiting the for loop, because we will cap tiles->col_start_sb[i] and tiles->row_start_sb[i] to sb_cols and sb_rows, respectively, so we won't consume more than sb_cols and sb_rows.

Fixes #5332.

The assertions are intended to verify that sb_cols and sb_rows are fully
consumed by av2_set_seq_tile_info() or av2_set_tile_info(). It is fine
for sb_start to exceed sb_cols or sb_rows after exiting the for loop,
because we will cap tiles->col_start_sb[i] and tiles->row_start_sb[i] to
sb_cols and sb_rows, respectively, so we won't consume more than sb_cols
and sb_rows.

Fixes AOMediaCodec#5332.
@wantehchang

Copy link
Copy Markdown
Member Author

cc: @leolzhao @yeqing-wu

@wantehchang
wantehchang requested a review from y-guyon August 27, 2026 00:26
@urvangjoshi
urvangjoshi enabled auto-merge (squash) August 27, 2026 00:27
@urvangjoshi
urvangjoshi merged commit e0debbc into AOMediaCodec:main Aug 27, 2026
107 checks passed
@wantehchang
wantehchang deleted the correct-assertions branch August 27, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assertion failure `start_sb == sb_cols'

3 participants